package com.atguigu.yygh.order.service;

import com.atguigu.yygh.model.order.OrderInfo;
import com.atguigu.yygh.model.order.PaymentInfo;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.Map;


public interface PaymentService extends IService<PaymentInfo> {

    void createPayment(OrderInfo orderInfo, Integer status);

    void afterSuccess(Long orderId, Map<String, String> map);

    PaymentInfo getPaymentByOrderId(Long orderId);
}